package com.work;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Controller {

    public Controller() {
    }
    Dog d;

    private Service service;

    public void setService(Service service) {
        this.service = service;
    }

    void select(){
        service.select();
    }
    void delete(){
        service.delete(1);
    }
    void insert(){
        service.insert(d);
    }
    void update(){
        service.update(d);
    }

}
